if "%programfiles(x86)%XXX"=="XXX" goto 32BIT
echo 64-bit Windows installed
copy Debug\WINPSTC64.dll %windir%\syswow64
copy Debug\WINPSTC64.pdb %windir%\syswow64
rundll32 %windir%\syswow64\WINPSTC64.dll MergeWithMAPISVC
goto END

:32BIT
echo 32-bit Windows installed
copy Debug\WINPSTC.dll %windir%\system32\WINPSTC32.dll
copy Debug\WINPSTC.pdb %windir%\system32\WINPSTC32.pdb
rundll32 %windir%\system32\WINPSTC32.dll MergeWithMAPISVC

:END
pause
